package com.miaoxie.forum.module.im.server.dao.impl;

import com.miaoxie.forum.module.auth.shared.dao.BiBaseDao;
import com.miaoxie.forum.module.im.server.dao.IIMUserDao;
import com.miaoxie.forum.module.im.shared.entity.IMUsersEntity;
import org.springframework.retry.annotation.Recover;
import org.springframework.stereotype.Repository;

/**
 * Created by miaoxie on 2017/8/18.
 */
@Repository
public class IMUserDao extends BiBaseDao implements IIMUserDao {

    String MAPPER_URL = "com.miaoxie.module.mobile.server.immapper";

    @Override
    public IMUsersEntity getUserByNo(String no) {
        return (IMUsersEntity) getSqlSession().selectOne(buildStatement(MAPPER_URL,"selectUser"),getParamsBuilder()
            .put("userid",no).build());
    }
}
